import { createApp } from 'vue'
//引入elementplus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入mavon-editor
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'



import App from './App.vue'
import router from './router'

import { createPinia } from "pinia";





const pinia = createPinia();

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(pinia)
app.use(ElementPlus)

app.use(mavonEditor)




app.use(router)

app.mount('#app')
